package com.shop.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.admin.entity.ShopGoods;
import com.shop.admin.entity.ShopOrder;
import com.shop.admin.vo.RankingVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShopOrderDao extends BaseMapper<ShopOrder> {

    void updateSaleCount(@Param("shopGoodsList") List<ShopGoods> shopGoodsList);

    List<ShopOrder> rankingList(@Param("params")Map<String, Object> params);
}
